#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<errno.h>
#include"tcpsocket.h"

int main(int argc,char * argv[])
{
	int ret = -1;
	//test tcp socket as a client socket
	TcpSocket svr(argv[1],atoi(argv[2]));
	ret = svr.Connect();
	if (ret == 0)
	{
		char buf[512];
		read()
	}
	if (ret != 0)
	{
		printf("ret is %d, errno is %d, error msg is %s\n",ret,errno,strerror(errno));
	}
	return  ret;
}
